package com.getset.gestorsms.util;

import com.getset.gestorsms.HibernateUtil;
import com.getset.gestorsms.clientes.ClienteDAO;
import com.getset.gestorsms.clientes.ClienteDAOHibernate;
import com.getset.gestorsms.planos.PlanoDAO;
import com.getset.gestorsms.planos.PlanoDAOHibernate;

public class DAOFactory {

	public static ClienteDAO criaClienteDAO() {
		ClienteDAOHibernate clienteDaoHibernate = new ClienteDAOHibernate();
		clienteDaoHibernate.setSessao(HibernateUtil.getSession()
				.getCurrentSession());
		return clienteDaoHibernate;
	}
	
	public static PlanoDAO criaPlanoDAO(){
		PlanoDAOHibernate planoDaoHibernate = new PlanoDAOHibernate();
		planoDaoHibernate.setSessao(HibernateUtil.getSession()
				.getCurrentSession());
		return planoDaoHibernate;
		
	}

}
